package priv.lhy.sso.controller;

/**
 * author : lihy
 * date : 2019/2/12 13:15
 * 用来保存从token中取出的uid
 */
public class BaseController {

    static ThreadLocal<String> uidThreadLocal = new ThreadLocal<>();

    public void setUid(String uid) {
        uidThreadLocal.set(uid);
    }

    public String getUid() {
        return uidThreadLocal.get();
    }

}
